import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        System.out.println(erjinzhi(n));
    }

    private static String erjinzhi(int n) {
        StringBuilder stringBuilder = new StringBuilder();
        while(n > 0){
            int n1 = n % 2;
            stringBuilder.insert(0,n1);
            n /= 2;
        }
        return stringBuilder.toString();
    }
}
